import Vue from 'vue'
import App from './App.vue'
import router from './router'
import qs from 'qs'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import Router from 'vue-router'

import './permission'
const originalPush = Router.prototype.push
Router.prototype.push = function push (location) {
  return originalPush.call(this, location).catch(err => err)
}

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.prototype.axios = axios
Vue.prototype.qs = qs

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
